package com.bytz.modules.cms.order.model;

import lombok.*;

/**
 * 支付响应
 */
@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@ToString
public class PayResponse {

    /**
     * 状态码
     */
    private String code;

    /**
     * 描述
     */
    private String description;

    /**
     * 响应状态
     */
    private PayResponseStatus payResponseStatus;

    public String toPlainString() {
        return description != null ? description : code;
    }
}
